package br.unb.cic.lp.gol;

public class Conway extends CommonConwayHighlife {

    public Conway(int height, int width, Cell[][] cells) {
        super(height, width, cells);
    }

    /* verifica se uma celula deve (re)nascer */
    @Override
    protected boolean shouldRevive(int i, int j) {
        return (!cells[i][j].isAlive()) && (numberOfNeighborhoodAliveCells(i, j) == 3);
    }

    @Override
    public String getNomeEstrategia() {
        return "Conway";
    }

}
